<template>
    <div class="container" :style="'min-height: '+$docHeight+'px'">
        <div v-if="showCont&&!showTimeOut">
            <div class="bannerCont">
                <div class="bannerLeft">
                    <div class="bannerName">消费记录</div>
                    <div class="bannerMain">
                        <div class="bannerDesItem">每一笔消费</div>
                        <div class="bannerDesItem">都用心记录在这里...</div>
                    </div>
                    <!-- <img class="bannerLeftImg" src="/img/lifeIcon2.png" /> -->
                </div>
                <img class="bannerImg" src="/img/record.png" />
            </div>
            <div class="formMain">
                <div :class="index==0?'formCont noTop':'formCont'" :key="index" v-for="(item,index) in 4">
                    <div class="formTitle">
                        <div>JY12765783481</div>
                    </div>
                    <div class="itemForm">
                        <div class="formLeft">
                            <div class="formInput">
                                <div class="authVal">吴欢(18483613963)</div>
                            </div>
                            <div class="formInput">
                                <div class="authVal">2024-06-31 11:30</div>
                            </div>
                        </div>
                        <div class="orderPricr">-¥15.00</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>
<script>
    export default {
        components: {},
        name:'',
        data() {
            return {
                showTimeOut: false,
                showCont:false,
            }
        },
        props: {},
        setup(){},
        methods:{
            addFn(){
                this.$router.push({path:'/addCar'})
            }
        },
        mounted(){},
        created() {
            this.showCont = true
        },
    }
</script>
<style scoped lang="less">
.container{
    box-sizing: border-box;
    padding-bottom: 1.25rem;
    background-color: #ebf9f3;
    .bannerCont{
        width: 100%;
        // height: 20rem;
        background-image: linear-gradient(to bottom, #5cc78e,#ebf9f3);
        color: #fff;
        display: flex;
        justify-content: space-between;
        padding: 2rem 4% 0rem;
        box-sizing: border-box;
        .bannerImg{
            flex: 1;
            width: 1rem;
            position: relative;
            top: -1rem;
        }
        .bannerLeft{
            width: 12rem;
            position: relative;
            .bannerName{
                font-size: 1.2rem;
                font-weight: bold;
                position: relative;
                top: -0.7rem;
            }
            .bannerLeftImg{
                width: 4rem;
            }
            .bannerMain{
                position: relative;
                font-size: 0.7rem;
                .bannerDesItem{
                    margin-bottom: 0.25rem;
                }
            }
        }
    }
    .formMain{
        background-color: #fff;
        width: 92%;
        margin: 0 auto 0.75rem;
        position: relative;
        overflow: hidden;
        padding: 0.75rem 4%;
        border-radius: 0.25rem;
        box-sizing: border-box;  
        .formCont{
            width: 100%;
            padding: 0.75rem 0;
            box-sizing: border-box;
            border-top: 1px dashed #ccc;
            .formTitle{
                font-weight: bold;
                font-size: 0.75rem;
                margin-bottom: 0.5rem;
            }
            .itemForm{
                display: flex;
                align-items: center;
                justify-content: space-between;
                .orderPricr{
                    color: #5cc78e;
                    font-size: 1rem;
                }
            }
            .formInput{
                display: flex;
                align-items: center;
                margin-bottom: 0.25rem;
                color: #666;
                // font-size: 0.6rem;
            }
            .formCtrl{
                margin-top: 0.75rem;
                display: flex;
                justify-content: flex-end;
                .ctrlItem{
                    padding: 0.35rem 1.5rem;
                    background-color: #fff;
                    color: #5cc78e;
                    margin-left: 0.75rem;
                    border-radius: 0.25rem;
                    font-size: 0.6rem;
                    border: 1px solid #5cc78e;
                }
                .delBtn{
                    background-color: #5cc78e;
                    color: #fff;
                }
            }
        }  
        .noTop{
            border-top: none;
        }
    }
}
</style>